<#assign display=JspTaglibs["/WEB-INF/tlds/displaytag.tld"]/>
<html>
<head>
    <title><@spring.message "teeTime.details"/></title>
</head>
<body>
<h1><@spring.message "teeTime.details"/></h1>

<div>
    <a href="viewAll.htm"><@spring.message "entity.viewAll"/></a>&nbsp;
    <a href="../round/create.htm?id=${entity.id}"><@spring.message "round.addRound"/></a>&nbsp;
</div>
<#include "../common/showMessages.ftl">
<div class="marginTop infoBox">

    <table>
        <tbody>
        <tr>
            <th><@spring.message "teeTime.maxParticipants"/>:</th>
            <td>${entity.maxParticipants}</td>
        </tr>
        <tr>
            <th><@spring.message "teeTime"/>:</th>
            <td>${entity.teeTime?datetime}</td>
        </tr>
        <tr>
            <th><@spring.message "course"/>:</th>
            <td>${entity.course.guiDescription}</td>
        </tr>
        <tr>
            <th><@spring.message "entity.modificationTime"/>:</th>
            <td>${entity.modificationTime?datetime}</td>
        </tr>
        <tr>
            <th><@spring.message "entity.creationTime"/>:</th>
            <td>${entity.creationTime?datetime}</td>
        </tr>
        </tbody>
    </table>
</div>

<div class="marginTop">
<@display.table name="entity.rounds" id="entity" pagesize=30 class="listingTable">
<@display.column titleKey="player" property="player.guiDescription" sortable=true/>
<@display.column titleKey="teeColour" property="teeColour"/>
<@display.column titleKey="round.slopeHandicap" property="slopeHandicap"/>
<@display.column titleKey="round.totalScore" property="totalScore"/>
<@display.column titleKey="round.totalNetScore" property="totalNetScore"/>
<@display.column title="&nbsp;" class="listingTableLink"><a
        href="../round/view.htm?id=${entity.id}"><@spring.message "entity.view"/></a></@display.column>
<@display.column title="&nbsp;" class="listingTableLink"><a
        href="../round/edit.htm?id=${entity.id}"><@spring.message "entity.edit"/></a></@display.column>
    <@display.column title="&nbsp;" class="listingTableLink"><a
        href="../round/remove.htm?id=${entity.id}"><@spring.message "entity.remove"/></a></@display.column>
</@display.table>
</body>
</html>